package com.auxgroup.smarthome.service.inner;

import com.auxgroup.smarthome.service.UserDeviceInnerServiceFallback;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/9/14 8:56.
 */
@FeignClient(name = "INNER-SERVICE",fallback = UserDeviceInnerServiceFallback.class)
public interface UserDeviceInnerService {

    @DeleteMapping(value = "/inner/devices/sharing/friend")
    ApiResponse relieveFriendShare(@RequestParam("appid") String appid, @RequestParam("token") String token, @RequestParam("uid") String uid, @RequestParam("deviceId") String deviceId);

}
